<template>
  <div>
    <div class="wel__header">
      <div class="wel__info">
        <img :src="userInfo.avatar"
             alt=""
             class="wel__info-img">
        <div class="wel__info-content">
          <div class="wel__info-title">
            早安，Chaos一款超乎你想象的框架！
          </div>
          <div class="wel__info-subtitle">
            我是团队下的一个部门-哈皮部门-哈皮职位
          </div>
        </div>
      </div>
      <div class="wel__extra">
        <div class="wel__extra-item">
          <p class="wel__extra-title">
            项目数
          </p>
          <p class="wel__extra-subtitle">
            5000
          </p>
        </div>
        <div class="wel__extra-item">
          <p class="wel__extra-title">
            团队内排名
          </p>
          <p class="wel__extra-subtitle">
            8 <span>/ 24</span>
          </p>
        </div>
        <div class="wel__extra-item">
          <p class="wel__extra-title">
            项目访问
          </p>
          <p class="wel__extra-subtitle">
            2,223
          </p>
        </div>
      </div>
    </div>
  </div>
  
  <svg class="icon" aria-hidden="true">
    <use xlink:href="#ali-icon-caidan"></use>
  </svg>
  <hr/>
  
  <!-- <component is="el-icon-delete"></component> -->
  <!-- <el-icon><component is="el-icon-delete"></component></el-icon>
  

<el-icon color="red" size="30px">
  <Icon icon="ic:baseline-5k" />
</el-icon>

<icon-park type="AddText" theme="filled"/>
<icon-park type="add-text" theme="filled"/>
<icon-park type="api-app" theme="filled"></icon-park>
 -->
 <!-- font-size  color -->
<base-icon el-name="el-icon-delete" color="red" ></base-icon>
<base-icon el-name="House"></base-icon>

<base-icon ali-name="ali-icon-caidan" color="blue"></base-icon>

<base-icon byte-name="bookmark" color="yellow"></base-icon>

<base-icon ify-name="ic:baseline-5g" color="green"></base-icon>

</template>

<script>
import { mapGetters } from "vuex";
// import { Icon } from '@iconify/vue';
// import {IconPark} from '@icon-park/vue-next/es/all';
// import baseIcon from '@/components/base-icon/index.vue'

export default {
  name: "wel",
  components: {
    // Icon,
    //  IconPark,
     // baseIcon,
  },
  computed: {
    ...mapGetters(["userInfo"]),
  },
  created () { },
  methods: {}
};
</script>

<style scoped="scoped" lang="scss">

.wel {
  &__header {
    padding: 25px 40px;
    border-bottom: 1px solid #e8e8e8;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  &__info {
    display: flex;
    align-items: center;
    &-img {
      border-radius: 72px;
      display: block;
      width: 72px;
      height: 72px;
      img {
        width: 100%;
        height: 100%;
        display: block;
      }
    }
    &-content {
      position: relative;
      margin-left: 24px;
      color: rgba(0, 0, 0, 0.45);
      line-height: 22px;
    }
    &-title {
      font-size: 20px;
      line-height: 28px;
      font-weight: 500;
      color: rgba(0, 0, 0, 0.85);
      margin-bottom: 12px;
    }
    &-subtitle {
      position: relative;
      font-size: 14px;
      color: rgba(0, 0, 0, 0.45);
      line-height: 22px;
    }
  }
  &__extra {
    &-item {
      position: relative;
      padding: 0 32px;
      display: inline-block;
      &:last-child {
        &::after {
          display: none;
        }
      }
      &:after {
        background-color: #e8e8e8;
        position: absolute;
        top: 30px;
        right: 0;
        width: 1px;
        height: 40px;
        content: "";
      }
    }
    &-title {
      color: rgba(0, 0, 0, 0.45);
      font-size: 14px;
      line-height: 22px;
      margin-bottom: 4px;
    }
    &-subtitle {
      color: rgba(0, 0, 0, 0.85);
      font-size: 30px;
      line-height: 38px;
      margin: 0;
      span {
        color: rgba(0, 0, 0, 0.45);
        font-size: 20px;
      }
    }
  }
}
</style>
